package com.lagou.edu.controller;

import com.lagou.edu.service.ResumeServiceFeginClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lyj
 * @Title: AutoDeliverController
 * @ProjectName lagou-parent
 * @Description: TODO
 * @date 2020/12/27 11:21
 */
@RestController
public class AutoDeliverController {

    @Autowired
    private ResumeServiceFeginClient resumeServiceFeginClient;

    @GetMapping("/checkState/{userId}")
    public Integer checkStateTimeout(@PathVariable Long userId) {
        return resumeServiceFeginClient.findDefaultResumeState(userId);
    }

}

